package com.lsh.airticket.dto;

import lombok.Data;

/**
 * @author lsh
 * @date 2021/2/16
 **/
@Data
public class TicketInformation {

    private String fromCity;
    private String toCity;
    private String flightDate;
    private String airrouteLength;
    private String preDownTime;
    private String preUpTime;
    private String fromAirport;
    private String toAirport;
    /** 机型名称 */
    private String modelName;
    /** 仓位名称 */
    private String spaceName;
    /** 票价 */
    private Integer ticketPrice;
    /** 机场建设费 */
    private Integer fuelSurcharge;
    /** 航空保险费 */
    private Integer airportFee;


    /** 机票编号 */
    private String ticketId;
    /** 航班id */
    private String flightId;
    /** 航班信息 */
    private String flightInfo;


    public void setPreDownTime(String preDownTime) {
        preDownTime = preDownTime.substring(0, 5);
        this.preDownTime = preDownTime;
    }

    public void setPreUpTime(String preUpTime) {
        preUpTime = preUpTime.substring(0, 5);
        this.preUpTime = preUpTime;
    }
}
